package com.augrain.microframework.trace.instrument.schedule;

import com.augrain.microframework.trace.wrapper.RunnableWrapper;
import org.springframework.core.task.TaskDecorator;

/**
 * 任务增强
 *
 * @author biaoy
 * @since 2023/08/13
 */
public class CustomTaskDecorator implements TaskDecorator {

    @Override
    public Runnable decorate(Runnable runnable) {
        return RunnableWrapper.of(runnable);
    }
}
